package com.enjoy.ioc.initialize;

import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;


public class A implements InitializingBean {

    @PostConstruct
    public void postConstruct() {
        System.out.println("@PostConstruct被调用了");
    }

    public void init() {
        System.out.println("init被调用了");
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("InitializingBean被调用了");
    }


}
